<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:98:"D:\phpStudy2018\PHPTutorial\WWW\xbs22\supermarket\public/../application/index\view\edit\user_list.html";i:1540120705;s:84:"D:\phpStudy2018\PHPTutorial\WWW\xbs22\supermarket\application\index\view\layout.html";i:1540197846;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>超市 </title>
	<meta name="description" content="">
	<meta name="keywords" content="">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<meta name="renderer" content="webkit">
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="icon" type="image/png" href="/static/images/favicon.png">
	<link href="/static/css/amazeui.min.css" rel="stylesheet" type="text/css" />
	<link href="/static/css/style.css" rel="stylesheet" type="text/css" />
	<script src="/static/js/jquery-1.10.2.min.js"></script>
	<script src="/static/js/time.js"></script>
	<script src="/static/js/popup.mini.js"></script>
	<link rel="stylesheet" href="/static/layui/css/layui.css" />
	<script src="/static/layui/layui.js"></script>
</head>
<body style="background: #f6f6f6;">

<header data-am-widget="header" class="am-header am-header-default sq-head ">
	<div class="am-header-left am-header-nav">
		<a href="javascript:history.back()" class="">
			<i class="am-icon-chevron-left"></i>
		</a>
	</div>
	<h1 class="am-header-title">
		<a href="" class="">个人资料</a>
	</h1>
</header>
<div style="height: 49px;"></div>
<form action="" class="layui-form">
	<ul class="safty1">
		<li>
				<i style="margin-top: 25px;">头像</i>
				<div class="infor-pic">
					<img src="/<?php echo session('face'); ?>"/>
				</div>
		</li>
		<li>
			<i>昵称</i>
			<input class="infor-tele" style="margin-left: 20px;line-height: 24px;color: #000000;background: #F6F6F6" value="<?php echo session('username'); ?>" placeholder="你即将使用的昵称" ></input>
		</li>
		<li>
			<i style="line-height: 35px">性别</i>
			<i class="infor-tele">
					<input type="radio" name="sex" value="0" <?php echo $sex['sex']==0 ? 'checked' : ''; ?> data-am-ucheck>男
					<input type="radio" name="sex" value="1"  <?php echo $sex['sex']==1 ? 'checked' : ''; ?> data-am-ucheck>女
			</i>
		</li>
	</ul>
	<div style="height: 10px; background: #efefef;"></div>
	<ul class="safty1">
		<li>
			<i>学校</i>
			<input class="infor-tele" style="height: 25px;color: #000000;background: #F6F6F6" name="school" value="<?php echo $sex['school'] ? $sex['school'] :''; ?>" placeholder="就读于哪个学校"/>
		</li>
		<li>
			<i>位置</i>
			<input class="infor-tele" style="height: 25px;color: #000000;background: #F6F6F6" name="address" value="<?php echo $sex['address'] ? $sex['address'] :''; ?>" placeholder="详细地址"/>
		</li>
		<li>
			<i>手机</i>
			<input class="infor-tele" style="margin-left: 20px;line-height: 24px;color: #000000;background: #F6F6F6" value="<?php echo session('phone'); ?>" placeholder="你的手机号码" ></input>
		</li>
	</ul>
	<button class="layui-btn layui-btn-warm" lay-submit lay-filter="edit" style="float: right">保存</button>
</form>
<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;
        //监听提交
        form.on('submit(edit)', function(data){
           $.post("<?php echo url('index/Edit/edits'); ?>", data.field, function(res) {
               if (res.code==1){
                   layer.alert(res.msg, {icon: 1},function (){
                       location.reload();
				   });
               }else{
                   layer.msg(res.msg, {icon: 9},function () {});
               }
           });
            return false;
        });
    });
</script>

<div style="height: 55px;"></div>
<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default sq-foot am-no-layout" id="">
	<ul class="am-navbar-nav am-cf am-avg-sm-5">
		<li>
			<a href="<?php echo url('index/Index/index'); ?>" class="<?php echo request()->controller()=='Index' ? 'curr':''; ?>">
				<span class="am-icon-home"></span>
				<span class="am-navbar-label">首页</span>
			</a>
		</li>
		<li>
			<a href="message.html" class="">
				<span class="am-icon-comments"></span>
				<span class="am-navbar-label">动态</span>
			</a>
		</li>
		<li>
			<a href="<?php echo url('index/ShopingCar/index'); ?>" class="<?php echo request()->controller()=='ShopingCar' ? 'curr':''; ?>">
				<span class="am-icon-shopping-cart"></span>
				<span class="am-navbar-label">购物车</span>
			</a>
		</li>
		<li>
			<a href="allorder.html" class="">
				<span class="am-icon-file-text"></span>
				<span class="am-navbar-label">订单</span>
			</a>
		</li>

		<li>
			<a href="<?php echo url('index/My/index'); ?>" class="<?php echo request()->controller()=='My' ? 'curr':''; ?>">
				<span class="am-icon-user"></span>
				<span class="am-navbar-label">我的</span>
			</a>
		</li>
	</ul>
</div>
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/amazeui.min.js"></script>
</body>
</html>